public class Table{
	private Fork forks[];
	private int diners;

	public Table (int newDiners){
		this.diners= newDiners;
		forks= new Fork[diners];
		for (int i= 0; i < diners; i++)
			forks[i]= new Fork(i);
	}

	public Fork fork(int i){
		return forks[i];
	}

	public int right_fork(int i){
		return (i+1)%diners;
	}

	public int left_fork(int i){
		return i;
	}
}

